package com.gzpi.hwgggh.entity;

import com.gzpi.hwgggh.utils.CommonTools;
import com.gzpi.hwgggh.utils.GUID;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @date : 2020-12-21 17:13
 **/
public class DWC {

    private String ID; //唯一ID
    private String FID;//外键ID
    private String DWBH;//点位编号
    private String XH; //序号
    private String SZLD; //所在路段
    private String JZMC; //建制名称
    private String JZXZ; //建筑性质
    private String JZMJ; //建筑面积
    private String JZQS; //建筑权属
    private String ZXGH; //专项规划分区
    private String CTIME; //创建时间
    private String MTIME; //修改时间
    private String QSMC; //权属名称
    private String UID; //


    //没用到
    private String BZ;
    private String GHZY;

    //
    private List<GGP> ggps; //广告牌信息
    private Map<String,Object> ggpmap; //保存排序合并显示广告牌属性
    private boolean isDelete; //是否不显示
    private String IDNAME; //拼接后的显示名称
    private DWTP dwtp; //图片信息

    public String getFID() {
        return FID;
    }

    public void setFID(String FID) {
        this.FID = FID;
    }

    public String getDWBH() {
        return DWBH;
    }

    public void setDWBH(String DWBH) {
        this.DWBH = DWBH;
    }

    public String getXH() {
        return XH;
    }

    public void setXH(String XH) {
        this.XH = XH;
    }

    public Map<String, Object> getGgpmap() {
        return ggpmap;
    }

    public void setGgpmap(Map<String, Object> ggpmap) {
        this.ggpmap = ggpmap;
    }

    public boolean isDelete() {
        return isDelete;
    }

    public void setDelete(boolean delete) {
        isDelete = delete;
    }

    public DWTP getDwtp() {
        return dwtp;
    }

    public void setDwtp(DWTP dwtp) {
        this.dwtp = dwtp;
    }

    public String getIDNAME() {
        return IDNAME;
    }

    public void setIDNAME(String IDNAME) {
        this.IDNAME = IDNAME;
    }


    public List<GGP> getGgps() {
        return ggps;
    }

    public String getGHZY() {
        return GHZY;
    }

    public void setGHZY(String GHZY) {
        this.GHZY = GHZY;
    }

    public void setGgps(List<GGP> ggps) {
        this.ggps = ggps;
    }

    public String getUID() {
        return UID;
    }

    public void setUID(String UID) {
        this.UID = UID;
    }

    public String getBZ() {
        return BZ;
    }

    public void setBZ(String BZ) {
        this.BZ = BZ;
    }

    public String getID() {
        return ID;
    }

    public void setID(String ID) {
        this.ID = ID;
    }

    public String getSZLD() {
        return SZLD;
    }

    public void setSZLD(String SZLD) {
        this.SZLD = SZLD;
    }

    public String getJZMC() {
        return JZMC;
    }

    public void setJZMC(String JZMC) {
        this.JZMC = JZMC;
    }

    public String getJZXZ() {
        return JZXZ;
    }

    public void setJZXZ(String JZXZ) {
        this.JZXZ = JZXZ;
    }

    public String getJZMJ() {
        return JZMJ;
    }

    public void setJZMJ(String JZMJ) {
        this.JZMJ = JZMJ;
    }

    public String getJZQS() {
        return JZQS;
    }

    public void setJZQS(String JZQS) {
        this.JZQS = JZQS;
    }

    public String getZXGH() {
        return ZXGH;
    }

    public void setZXGH(String ZXGH) {
        this.ZXGH = ZXGH;
    }

    public String getCTIME() {
        return CTIME;
    }

    public void setCTIME(String CTIME) {
        this.CTIME = CTIME;
    }

    public String getMTIME() {
        return MTIME;
    }

    public void setMTIME(String MTIME) {
        this.MTIME = MTIME;
    }

    public String getQSMC() {
        return QSMC;
    }

    public void setQSMC(String QSMC) {
        this.QSMC = QSMC;
    }



    public DWC() {
    }


    public DWC(DWX dwx) {
        setDWX(dwx);
    }

    /**
     * 设置基本信息
     * @param dwx 点位现状信息
     */
    public void setDWX(DWX dwx){
        this.setFID(dwx.getID() != null ? dwx.getID() : null); //外键id
        this.setDWBH(dwx.getXSDWBH() != null ? dwx.getXSDWBH() : null); //点位编号
        this.setXH(dwx.getXH() != null ? dwx.getXH() : null); //序号
        this.setSZLD(dwx.getSZLD() != null ? dwx.getSZLD() : null); //所在路段
        this.setJZMC(dwx.getJZMC() != null ? dwx.getJZMC() : null); //建筑名称
        this.setJZXZ(dwx.getJZXZ() != null ? dwx.getJZXZ() : null); //建筑性质
        this.setJZMJ(dwx.getJZMJ() != null ? dwx.getJZMJ() : null); //建筑面积
        this.setJZQS(dwx.getJZQS() != null ? dwx.getJZQS() : null); //建筑权属
        this.setQSMC(dwx.getQSMC() != null ? dwx.getQSMC() : null); //权属名称
        this.setZXGH(dwx.getZXGH() != null ? dwx.getZXGH() : null); //专项规划分区
        this.setUID(dwx.getUID() != null ? dwx.getUID() : null); //
        this.setCTIME(CommonTools.getCurrentTime()); //创建时间
        this.setID(CommonTools.getCurrentTimeMillis());//唯一ID
    }
}
